//**********模块对应的各种组件 根据 type进行区分***********/;
import request from '@/utils/request.js';

/**
 * 创建BaseModuleComponent
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  baseModuleId:'', //$column.comments 	类型:integer 非必填
 *  code:'', //唯一标识码 	类型:string 非必填
 *  name:'', //模块名称 	类型:string 非必填
 *  title:'', //标题 	类型:string 非必填
 *  type:'', //类型 	类型:string 非必填
 * @returns
 * ********
 */
export function postHmbasemodulecomponent(data={}, config={}){
  return request({
    method: 'post',
    data,
    url: `/api/hmbasemodulecomponent`,
    ...config,
  }) 
}

/**
 * 修改
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 
 *  baseModuleId:'', //$column.comments 	类型:integer 非必填
 *  code:'', //唯一标识码 	类型:string 非必填
 *  id:'', //$column.comments 	类型:integer 非必填
 *  name:'', //模块名称 	类型:string 非必填
 *  title:'', //标题 	类型:string 非必填
 *  type:'', //类型 	类型:string 非必填
 * @returns
 * ********
 */
export function putHmbasemodulecomponent(data={}, config={}){
  return request({
    method: 'put',
    data,
    url: `/api/hmbasemodulecomponent`,
    ...config,
  }) 
}

/**
 * 删除
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * data 参数 // 类型 array
 * []integer
 * @returns
 * ********
 */
export function deleteHmbasemodulecomponent(data=[], config={}){
  return request({
    method: 'delete',
    data,
    url: `/api/hmbasemodulecomponent`,
    ...config,
  }) 
}

/**
 * 详情
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * id:'', //id 必填
 * @returns
 * ********
 */
export function getHmbasemodulecomponentInfo(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hmbasemodulecomponent/info`,
    ...config,
  }) 
}

/**
 * 列表
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * ********
 * @returns
 * ********
 */
export function getHmbasemodulecomponentList(config={}){
  return request({
    method: 'get',
    url: `/api/hmbasemodulecomponent/list`,
    ...config,
  }) 
}

/**
 * 分页列表
 * @doc http://hanma-lesscode.hc-iiot.com/swagger-ui.html#!/
 * params 参数 
 * pageNo:'', //页码 非必填
 * pageSize:'', //每页数据条数 非必填
 * type:'', //type 必填
 * @returns
 * ********
 */
export function getHmbasemodulecomponentPageList(params={}, config={}){
  return request({
    method: 'get',
    params,
    url: `/api/hmbasemodulecomponent/page/list`,
    ...config,
  }) 
}